import request from '@/utils/request'

// 获取列表
export const getCategoryAPI = () => request.get('/my/cate/list')

// 添加
export const addCategoryAPI = data => request.post('/my/cate/add', data)

// 删除
export const deleteCategoryAPI = id => request.delete('/my/cate/del', { params: { id } })

// 修改
export const updateCategoryAPI = data => request.put('/my/cate/info', data)
